import redis

pool = redis.ConnectionPool(host='10.18.62.38',port=6379,
    password='XUZgcY7upS',decode_responses=True)
r=redis.Redis(connection_pool=pool)

def clear():
    while r.llen("url")>0:
        print(r.lpop("url"))
    print(r.llen("url"))

def show():
    print(r.llen("attachment"))
    # print(r.get("attachment"))


show()